<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>盛唐肯德基甜品站吃货大挑战</title>
    <meta http-equiv="Content-Language" content="zh-CN" />
    <meta name="viewport" content="width=device-width, user-scalable=no,initial-scale=1, minimum-scale=1, maximum-scale=1">
    <meta name="full-screen" content="yes" />
    <meta name="screen-orientation" content="portrait" />
    <meta name="x5-fullscreen" content="true" />
    <meta name="360-fullscreen" content="true" />

    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <style>
        body,
        canvas,
        div {
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            -khtml-user-select: none;
            -webkit-tap-highlight-color: rgba(255, 55, 88, 1);
        }

        html {
            width: 100%;
            height: 100%
        }

        .dailog {
            position: fixed;
            width: 59%;
            z-index: 9999;
            height: 30%;
            top: 0;
            left: 0;
        }
    </style>
    <!-- <link rel="stylesheet" type="text/css" href="http://game.9g.com/css/game9g.css"> -->
    <!-- // <script src="http://game.9g.com/js/game9g.js"></script> -->
</head>

<body style="padding:0; margin: 0;" ontouchmove='return'>
    <div style="display:none;">
        <img src="big_icon.jpg" />
    </div>
    <!-- <div class="dailog">
    <h1>haha</h1>
</div> -->
    <script src="http://www.play68.com/resources/js/cnzz_tongji.js"></script>
    <canvas id="gameCanvas" width="320" height="480"></canvas>
    <script src="cocos2d-js-v3.5-lite.js"></script>
    <script type="text/javascript">
        _czc.push(["_trackEvent", "open进入游戏", "肯德基甜品站吃货大挑战", "", "", ""]);
        window.onload = function () {
            cc.game.onStart = function () {
                var width = document.documentElement.clientWidth;
                var height = document.documentElement.clientHeight;
                cc.view.setDesignResolutionSize(width, height, cc.ResolutionPolicy.SHOW_ALL);
                MyLoader.preload(g_resources, function () {
                    setTimeout(function () {
                        cc.director.runScene(new StartScene());
                    }, 500)
                }, this);
            };
            cc.game.run("gameCanvas");
        };
    </script>

    <script type="text/javascript">
        function loadjs(script_filename) {
            var script = document.createElement('script');
            script.setAttribute('type', 'text/javascript');
            script.setAttribute('src', script_filename);
            script.setAttribute('id', 'coolshell_script_id');
            script_id = document.getElementById('coolshell_script_id');
            document.getElementsByTagName('head')[0].appendChild(script);
        }
    </script>
    <script>
        // var game9g = new Game9G("ch");
        // game9g.shareData.title = "吃货准备好了吗？";
        // game9g.shareData.content = "吃货准备好了吗？";
        function goHome() {
            // window.location = game9g.homeurl;
        }
        function clickMore() {
            _czc.push(["_trackEvent", "吃货大挑战", "回到主页", "", "", ""]);
            if (document.referrer) {
                // Play68.goHome();
            }
            else {
                // play68_goHome();
                // window.location = game9g.moreurl;
            }
        }
        function dp_share() {
            // play68_submitScore(score);
            // game9g.share();
        }
        function dp_Ranking() {
            // window.location=game9g.rankurl;
        }
        function showAd() {
        }
        function hideAd() {
        }
        var $_score = 0;
        function dp_submitScore(score) {
            $_score = score;
            // debugger
            // if(score>0){
            // 	game9g.score = score;
            // game9g.scoreName = "得了" + score + "分";	 
            // 	game9g.shareData.title = "我在游戏中得了"+score+"分,你也来试试看吧！";
            // 	game9g.utils.shareConfirm("你在游戏中得了"+score+"分，快通知一下小伙伴吧！", dp_share); 
            // }
        }
        function gotoView() {
            console.log('gotoView', $_score)
            // window.location.href = 
            switch (true) {
                case $_score <= 20:
                    window.location.href = 'http://t.0757zt.com/app/index.php?i=21&c=entry&id=24&do=card&m=aj_cpon';
                    break;
                case $_score > 20 && $_score <= 30:
                    window.location.href = 'http://t.0757zt.com/app/index.php?i=21&c=entry&id=23&do=card&m=aj_cpon';
                    break;
                case $_score > 30 && $_score <= 50:
                    window.location.href = 'http://t.0757zt.com/app/index.php?i=21&c=entry&id=25&do=card&m=aj_cpon';
                    break;
                case $_score > 50 && $_score <= 70:
                    window.location.href = 'http://t.0757zt.com/app/index.php?i=21&c=entry&id=26&do=card&m=aj_cpon';
                    break;
                case $_score > 70 && $_score <= 80:
                    window.location.href = 'http://t.0757zt.com/app/index.php?i=21&c=entry&id=27&do=card&m=aj_cpon';
                    break;
                case $_score > 80 && $_score <= 100:
                    window.location.href = 'http://t.0757zt.com/app/index.php?i=21&c=entry&id=28&do=card&m=aj_cpon';
                    break;
                case $_score > 100:
                    window.location.href = 'http://t.0757zt.com/app/index.php?i=21&c=entry&id=29&do=card&m=aj_cpon';
                    break;
                default:
                    window.location.href = 'https://wx4.zjunu.com/kfc';
                    break;
            }
        }

        // 禁止分享
        function onBridgeReady() {
            WeixinJSBridge.call('hideOptionMenu');
        }

        if (typeof WeixinJSBridge == "undefined") {
            if (document.addEventListener) {
                document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
            } else if (document.attachEvent) {
                document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
                document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
            }
        } else {
            onBridgeReady();
        }
    </script>
    <div style="display: none;">
        <script type="text/javascript">
		// game9g.utils.tongji();
        </script>

        <script type="text/JavaScript">
window.shareData={
  'title':'吃货大挑战',
  'link':'http://wx4.zjunu.com/kfc/',
  'imgurl':'http://h5.gzlankong.com/games/chdtz/icon.png'
}
window.shareFriendData={
  'title':'吃货大挑战',
  'content':'关注码农联盟开发团队,更多好玩的游戏等着你。',
  'link':http://wx4.zjunu.com/kfc/',
  'imgurl':'http://h5.gzlankong.com/games/chdtz/icon.png'
}
</script>
        <script type="text/JavaScript" src="http://gc.veiying.cn/code"></script>
</body>

</html>